import { useRequest } from '#/api/core/api';
import { requestClient } from '#/api/request';

export const { useRequestHandle, requestPath } = useRequest('/dict');
export const getListByDictCode = async (dictCode: string) => {
  return requestClient.get(`/dict/getListByDictCode/${dictCode}`);
};
